﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vit.SchemaExplorer;

namespace Vit.Data
{
    public static class TableSchemaExtensions
    {
        //public static string PrimaryKeyCondition<TEntity>(this TableSchema tableSchema, TEntity entity)
        //    where TEntity : EntityBase, new()
        //{
        //    StringBuilder sql = new StringBuilder();
        //    foreach (PrimaryKeySchema pk in tableSchema.PrimaryKeys)
        //    {
        //        foreach (TableColumnSchema col in pk.KeyColumns)
        //        {
        //            sql.AppendFormat("{0}={1},", col.SafeName, col.ParameteredName);
        //        }
        //    }
            
        //}
    }
}
